package com.itheima.dao;

import com.itheima.pojo.HotSetmeal;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {
    List<Order> queryByCondition(Order condition);

    void add(Order order);

    Map findById(@Param("id") Integer id);

    List<Map> getSetmealReport();

    Integer findOrderCountByDate(@Param("date") String nowStr);

    Integer findVisitsCountByDate(@Param("date") String nowStr);

    Integer findOrderCountBetweenDate(@Param("start") String start, @Param("end") String end);

    Integer findVisitsCountBetweenDate(@Param("start") String start, @Param("end") String end);

    List<HotSetmeal> findHotSetmeal();
}
